/**   
* @Title: BeiDanCurrentExpectCommunicater.java 
* @Package com.esun.rabbit2.communicaters.bd 
* @Description: 获取北单当前期号
* @author: Billy Qigs@500wan.com   
* @date: 2012-4-23 下午2:25:03  
* Copyright: (C) 2011 Shenzhen E-sun Sky Net Technology Co.,ltd.
*/
package com.esun.rabbit2.communicaters.beijingdanchang;

import java.io.IOException;
import java.util.ArrayList;
import java.util.HashMap;

import javax.xml.parsers.ParserConfigurationException;

import org.apache.http.client.ClientProtocolException;
import org.xml.sax.SAXException;

import com.esun.config.BussinessCode;
import com.esun.network.ServerCommunicater;
import com.esun.util.HashMapUtil;

/** 
 * @ClassName: BeiDanCurrentExpectCommunicater 
 * @Description: 获取北单当前期号
 * @author: Billy Qigs@500wan.com
 * @date: 2012-4-23 下午2:25:03 
 *  
 */
public class BeiDanCurrentExpectCommunicater extends ServerCommunicater {
	
	
	public boolean isGetCurrentExpectSucceed() throws ClientProtocolException, IOException, ParserConfigurationException, SAXException{
		
		boolean isSucceed = false;
		
		ArrayList<HashMap<String, String>> list = new ArrayList<HashMap<String,String>>();
		
		list.add(HashMapUtil.getMapItem(BussinessCode.PASER_MID, BussinessCode.MID_BEIDAN_CURRENT_EXPECT));
		
		super.getServerResponse(list, true);
		
		if(super.getState() == 100){
			isSucceed = true;
		}else{
			isSucceed = false;
		}
		
		return isSucceed;
		
	}

}
